package aiku.numericalcontroloa.Mapper;

import aiku.numericalcontroloa.Model.Entity.DevicesOutbound;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
* @author 马
* @description 针对表【devices_outbound】的数据库操作Mapper
* @createDate 2024-03-02 15:02:35
* @Entity aiku.numericalcontroloa.Model.Entity.DevicesOutbound
*/
@Mapper
public interface DevicesOutboundMapper extends BaseMapper<DevicesOutbound> {

    /**
     * 根据id查询被逻辑删除的数据
     * @param id
     * @return
     */
    DevicesOutbound selectByIdWithDelete(@Param(value = "id")String id);

    /**
     * 根据id集合批量查询
     * 可根据状态查询，status为null查全部
     * @param idList
     * @param status
     * @return
     */
    List<DevicesOutbound> selectBatchByIdWithDelete(@Param(value = "list")Collection<String> idList,
                                                    @Param(value = "status")Integer status);
}




